package com.huawei.classroom.student.h06;

public class RifleSoldier extends Soldier{
	public RifleSoldier(int x,int y) {
		super(50,5,5,x,y);
	}
	public void attack(Dog dog) {
		if(ar<getDistance(dog)) return ;
		if(dog.hp>0) {
			dog.hp=0;
		}
	}
}